package com.scoy.honeymei.custem;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.VideoView;

/**
 * ClassName:      com.scoy.honeymei.custem
 * Description:
 * Author:         GaoZhan & Administrator
 * UpdateDate:     2020/8/10/0010$ 14:31$
 * UpdateRemark:   更新内容
 */

public class MeVideoView extends VideoView {

    public MeVideoView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        //        计算屏幕宽高
        int width = getDefaultSize(0, widthMeasureSpec);
        int heigth = getDefaultSize(0, heightMeasureSpec);
        setMeasuredDimension(width, heigth);
    }
}